package com.lly.songhigh.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 李新伟 on 15/10/31.
 */
public class MusicInfo implements Parcelable {
    private String singerName;
    private String songName;
    private String url;
    private long duration;
    private String picUrl;
    private long singerId;
    private long songId;
    private String resouce;
    private String album;
    private long id;
    private long albumId;

    public long getAlbumId() {
        return albumId;
    }

    public void setAlbumId(long albumId) {
        this.albumId = albumId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public String getSingerName() {
        return singerName;
    }

    public void setSingerName(String singerName) {
        this.singerName = singerName;
    }

    public String getSongName() {
        return songName;
    }

    public void setSongName(String songName) {
        this.songName = songName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public long getSingerId() {
        return singerId;
    }

    public void setSingerId(long singerId) {
        this.singerId = singerId;
    }

    public long getSongId() {
        return songId;
    }

    public void setSongId(long songId) {
        this.songId = songId;
    }

    public String getResouce() {
        return resouce;
    }

    public void setResouce(String resouce) {
        this.resouce = resouce;
    }

    public MusicInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.singerName);
        dest.writeString(this.songName);
        dest.writeString(this.url);
        dest.writeLong(this.duration);
        dest.writeString(this.picUrl);
        dest.writeLong(this.singerId);
        dest.writeLong(this.songId);
        dest.writeString(this.resouce);
        dest.writeString(this.album);
        dest.writeLong(this.id);
        dest.writeLong(this.albumId);
    }

    protected MusicInfo(Parcel in) {
        this.singerName = in.readString();
        this.songName = in.readString();
        this.url = in.readString();
        this.duration = in.readLong();
        this.picUrl = in.readString();
        this.singerId = in.readLong();
        this.songId = in.readLong();
        this.resouce = in.readString();
        this.album = in.readString();
        this.id = in.readLong();
        this.albumId = in.readLong();
    }

    public static final Creator<MusicInfo> CREATOR = new Creator<MusicInfo>() {
        public MusicInfo createFromParcel(Parcel source) {
            return new MusicInfo(source);
        }

        public MusicInfo[] newArray(int size) {
            return new MusicInfo[size];
        }
    };
}
